<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$return=array();
$return['setting']=$this->plugin_setting('basic');
if($_RQ['op']=='list'){
	$params=array('uniacid'=>$_SESSION['uniacid'],'num >'=>0);
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$total='';
	$list=pdo_getslice('jy_farmer_seed',$params,array($pindex,$psize),$total,$fields,'','id desc');
	if(empty($list)){
		$list = array(
			array('title'=>'示例种子','price'=>0.01,'id'=>'1')
		);
	}
	if($list){
		foreach($list as &$item){
			$item['image']=tomedia($item['image']);
		}
	}
	$return['list']=$list;
	exi($return);
}

